package com.dataextend.service.impl;

import com.dataextend.mapper.cluster.MenusDao;
import com.dataextend.entity.MenusEntity;
import com.dataextend.service.MenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenusServiceImpl implements MenusService {

    @Autowired
    private MenusDao menusDao;

    @Override
    public int add(MenusEntity menusEntity) {
        return menusDao.add(menusEntity);
    }

    @Override
    public int update(MenusEntity menusEntity) {
        return menusDao.update(menusEntity);
    }

    @Override
    public void delete(Long id) {
        menusDao.delete(id);
    }

    @Override
    public MenusEntity queryById(Long id) {
        return menusDao.queryById(id);
    }

    @Override
    public List<MenusEntity> list(MenusEntity menusEntity) {
        return menusDao.list(menusEntity);
    }
}
